<% content_for :css do  %>
  <%= stylesheet_link_tag 'orders','tasks','orders_show' %>
<% end %>
<% content_for :title do %><%= @order.buyer_full_name %>-预订单-<%= @order.order_no %><% end %>
<% content_for :help do %>
<%= link_to "帮助",help_for_first_order_step_2_3_4_5_6_order_url(@order), :remote => true, :method => :get, :class => 'help no_loading', :id => :help_me, :title => '帮助' %>
<% end %>  
<div class='clear'></div>
<div id="order" class='grid_24'>
  <div id="who_can_see" class="grid_24 alpha">
    <div class="private">
      <%= image_tag 'orders/private.jpg' %>
    </div>
    <div id="sel_group" class="tip">
      <%= render :partial => 'orders/visible_scope/visible_tip.html', :locals => { :order => @order } %>
    </div>
  </div>
  
  <div class='grid_24 alpha head'>
    <div class="grid_11 alpha title">
      <h6>
        <span>订单</span> 
        <b class='order_no'><%=@order.order_no%></b>
        <% if @order.order_items.any? %>
        <span title='完成度:<%= @order.completed_percent %>%,其中【<%= @order.order_items.completed.size%>】项结束，【<%= @order.order_items.uncompleted.size%>】项进行中' class='percent <%= @order.order_items_completed? ? 'completed' : '' %>'><%= @order.completed_percent %>%</span>        
        <% end %>
      </h6>
      <div id="order_desc">
        <%#*毛利-￥300%>
      </div>
    </div>
    <div id="status" class="grid_8 push_5 omega">
      <%= render :partial => 'show_status.html', :locals => { :order => @order } %>
    </div>
  </div>
  <div class='clear'></div>
  <div class='grid_17 alpha'>
    <div id="items" class='grid_17 alpha'>
      <!--这里是预订项信息-->
      <%= render :partial => 'orders/order_items/index.html', :locals => { :order => @order, :can_edit => true } %>
    </div>    
    <div id="remark" class='grid_17 alpha'>
      <!--这里是备注-->
      <%= render :partial => 'orders/remark/show.html', :locals => { :order => @order } %>
    </div>
  </div>    
  <div class='grid_7 omega'>
    <div id="order_info" class="grid_7 alpha omega">
      <!--这里是预订信息-->
      <%= render :partial => 'orders/order_infos/show.html', :locals => { :order => @order } %>
    </div>
    <div id="finance_info" class="grid_7 alpha omega">
      <%= render :partial => 'orders/finance_infos/show.html', :locals => { :order => @order } %>
    </div>
    <div class='clear'></div>
    <div id="buyer_info" class="grid_7 alpha">
      <!--这里是顾客资料-->
      <%= render :partial => 'orders/buyer_infos/show.html', :locals => { :order => @order } %>
    </div>
  </div>
</div>
</div>
<div class='clear'></div>
<% if Order.all.size == 1 %>
<script type="text/javascript" charset="utf-8">
  <%= render :file => "orders/help_for_first_order_step_2_3_4_5_6.js" %>
</script>
<% end %>